/*
 * Copyright 2009-2017 Alibaba Cloud All rights reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMACCESSSTRATEGYREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMACCESSSTRATEGYREQUEST_H_

#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>

namespace AlibabaCloud
{
	namespace Alidns
	{
		namespace Model
		{
			class ALIBABACLOUD_ALIDNS_EXPORT AddDnsGtmAccessStrategyRequest : public RpcServiceRequest
			{
			public:
				struct DefaultAddrPool
				{
					std::string id;
					int lbaWeight;
				};
				struct FailoverAddrPool
				{
					std::string id;
					int lbaWeight;
				};

			public:
				AddDnsGtmAccessStrategyRequest();
				~AddDnsGtmAccessStrategyRequest();

				std::string getDefaultLbaStrategy()const;
				void setDefaultLbaStrategy(const std::string& defaultLbaStrategy);
				std::string getFailoverAddrPoolType()const;
				void setFailoverAddrPoolType(const std::string& failoverAddrPoolType);
				std::string getDefaultAddrPoolType()const;
				void setDefaultAddrPoolType(const std::string& defaultAddrPoolType);
				int getFailoverMaxReturnAddrNum()const;
				void setFailoverMaxReturnAddrNum(int failoverMaxReturnAddrNum);
				std::string getFailoverLbaStrategy()const;
				void setFailoverLbaStrategy(const std::string& failoverLbaStrategy);
				std::vector<DefaultAddrPool> getDefaultAddrPool()const;
				void setDefaultAddrPool(const std::vector<DefaultAddrPool>& defaultAddrPool);
				int getFailoverMinAvailableAddrNum()const;
				void setFailoverMinAvailableAddrNum(int failoverMinAvailableAddrNum);
				int getDefaultMaxReturnAddrNum()const;
				void setDefaultMaxReturnAddrNum(int defaultMaxReturnAddrNum);
				int getDefaultMinAvailableAddrNum()const;
				void setDefaultMinAvailableAddrNum(int defaultMinAvailableAddrNum);
				std::string getStrategyMode()const;
				void setStrategyMode(const std::string& strategyMode);
				std::string getLang()const;
				void setLang(const std::string& lang);
				std::string getLines()const;
				void setLines(const std::string& lines);
				std::string getStrategyName()const;
				void setStrategyName(const std::string& strategyName);
				std::string getDefaultLatencyOptimization()const;
				void setDefaultLatencyOptimization(const std::string& defaultLatencyOptimization);
				std::string getInstanceId()const;
				void setInstanceId(const std::string& instanceId);
				std::string getFailoverLatencyOptimization()const;
				void setFailoverLatencyOptimization(const std::string& failoverLatencyOptimization);
				std::string getUserClientIp()const;
				void setUserClientIp(const std::string& userClientIp);
				std::vector<FailoverAddrPool> getFailoverAddrPool()const;
				void setFailoverAddrPool(const std::vector<FailoverAddrPool>& failoverAddrPool);

            private:
				std::string defaultLbaStrategy_;
				std::string failoverAddrPoolType_;
				std::string defaultAddrPoolType_;
				int failoverMaxReturnAddrNum_;
				std::string failoverLbaStrategy_;
				std::vector<DefaultAddrPool> defaultAddrPool_;
				int failoverMinAvailableAddrNum_;
				int defaultMaxReturnAddrNum_;
				int defaultMinAvailableAddrNum_;
				std::string strategyMode_;
				std::string lang_;
				std::string lines_;
				std::string strategyName_;
				std::string defaultLatencyOptimization_;
				std::string instanceId_;
				std::string failoverLatencyOptimization_;
				std::string userClientIp_;
				std::vector<FailoverAddrPool> failoverAddrPool_;

			};
		}
	}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDNSGTMACCESSSTRATEGYREQUEST_H_